package com.rrjjg.app.admin.api.vo;

import com.rrjjg.app.core.utils.ValidationUtil;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * ----------------------------------------------------------------------------- <br>
 * 功能 :  <br>
 * ----------------------------------------------------------------------------- <br>
 * 作者 : Vayne <br>
 * 时间 : 2023/4/8 <br>
 */
@Accessors(chain = true)
@Data
public class PushVo implements Serializable {

    @NotBlank(message = "应用名不能为空",groups = {ValidationUtil.add.class,ValidationUtil.update.class})
    private String application;

    @NotEmpty(message = "地址不能为空",groups = {ValidationUtil.add.class,ValidationUtil.update.class})
    private List<String> adds;

    @NotNull(message = "状态不能为空",groups = {ValidationUtil.update.class})
    private Integer type;
}
